//
//  CPYDiscoveryPageRightKeyModel.m
//  TTMusic
//
//  Created by chenpengyu on 16/4/1.
//  Copyright © 2016年 cpy. All rights reserved.
//

#import "CPYDiscoveryPageRightKeyModel.h"

@implementation CPYDiscoveryPageRightKeyModel

- (instancetype)initWithDataSource:(NSDictionary *)dataSource {
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dataSource];
        NSMutableArray *array = [NSMutableArray arrayWithCapacity:0];
        for (NSDictionary *dic in self.songRights) {
            CPYDiscoveryPageSongRightsModel *songRightsModel = [[CPYDiscoveryPageSongRightsModel alloc] init];
            [songRightsModel setValuesForKeysWithDictionary:dic];
            [array addObject:songRightsModel];
        }
        self.songRights = [NSArray arrayWithArray:array];
    }
    return self;
}

@end
